import sys

# from PyQt5 import QtWidgits, QtCore
from PyQt5 import QtCore, QtGui, QtWidgets  # works for pyqt5

app = QtWidgets.QApplication(sys.argv)
widget = QtWidgets.QWidget()
widget.resize(400, 400)
widget.setWindowTitle("Hello World")
widget.show()
# sys.exit(app.exec__())
sys.exit(app.exec_())

